package fivestar.controller.service.impl;

import java.util.List;

import fivestar.controller.service.AddressService;
import fivestar.model.dao.AddressDao;
import fivestar.model.entity.Address;

public class AddressServiceImpl implements AddressService {

	AddressDao addressDao;

	public void setAddressDao(AddressDao addressDao) {
		this.addressDao = addressDao;
	}

	@Override
	public void create(Address address) throws RuntimeException {
		addressDao.create(address);
	}

	@Override
	public void delete(Address address) throws RuntimeException {
		addressDao.delete(address);
	}

	@Override
	public void update(Address address) throws RuntimeException {
		addressDao.update(address);
	}

	@Override
	public Address find(int id) throws RuntimeException {		
		return addressDao.find(id);
	}

	@Override
	public List<String> findAll(String address) throws RuntimeException {
		return null;
	}

	@Override
	public Short findID(String address) throws RuntimeException {
		return null;
	}

}
